<template>
  <div class="app-container">
    <el-button type="primary" size="small" @click="startTestSystem" v-hasPermi="['bearing:basic:test']">模型训练系统测试版</el-button>
    <br/><br/>
    <el-tabs type="border-card">
      <el-tab-pane label="预测模型训练">
        <RUL></RUL>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
  import RUL from "./rul";
  import { StartTestSystem } from "../../../api/bearing/basic";

  export default {
    name: "train",
    components: { RUL },
    data() {
      return {};
    },
    created() {},
    methods: {
      startTestSystem() {
        StartTestSystem().then(response => {
          let msg = JSON.parse(response['msg'])['data'];
          if (msg === "0") {
            this.$modal.msgSuccess("系统启动成功");
          }
        });
      }
    }
  };
</script>